package com.x.erp.model;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "ERP_CAR_ORDER")
public class CarOrder extends BaseObject {
	private static final long serialVersionUID = -8299585155158290302L;

	@MappingColumn(columnName = "ORDER_ID", columnPk = true, columnLength = 32)
	private String orderId;// 订单id

	@MappingColumn(columnName = "ORDER_SALE_TYPE")
	private Integer orderSaleType;// 销售类型（1：批发、2：直销、3：拍卖）

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "ORDER_DEAL_DATE")
	private Date orderDealDate;// 成交日期

	@MappingColumn(columnName = "ORDER_PRICE")
	private BigDecimal orderPrice;// 成交价格（单位/万元）

	@MappingColumn(columnName = "ORDER_DEPOSIT")
	private BigDecimal orderDeposit;// 定金（单位/万元）

	@MappingColumn(columnName = "ORDER_REMARK")
	private String orderRemark;// 备注

	@MappingColumn(columnName = "ORDER_BUYER_NAME")
	private String orderBuyerName;// 买家名称

	@MappingColumn(columnName = "ORDER_BUYER_MOBILE")
	private String orderBuyerMobile;// 买家电话

	@MappingColumn(columnName = "ORDER_BUYER_CARD_NO")
	private String orderBuyerCardNo;// 买家证件号

	@MappingColumn(columnName = "ORDER_INSURANCE_STATE")
	private Integer orderInsuranceState;// 是否代办保险（1：代办、0：不代办）

	@MappingColumn(columnName = "ORDER_INSURANCE_COMPANY")
	private String orderInsuranceCompany;// 保险公司

	@MappingColumn(columnName = "ORDER_FORCE_INSUR_PRICE")
	private BigDecimal orderForceInsurPrice;// 交强险金额

	@MappingColumn(columnName = "ORDER_BUSINESS_INSUR_PRICE")
	private BigDecimal orderBusinessInsurPrice;// 商业险金额

	@MappingColumn(columnName = "ORDER_CREATE_TIME")
	private Date orderCreateTime;// 创建时间

	@MappingColumn(columnName = "ORDER_UPDATE_TIME")
	private Date orderUpdateTime;// 修改时间

	@MappingColumn(columnName = "ORDER_DEAL_USER_ID")
	private String orderDealUserId;// 成交员工id

	@MappingTable(tableName = "ERP_USER")
	private User user;// 成交员工用户信息

	@MappingColumn(columnName = "CHANNEL_ID")
	private String channelId;// 渠道id

	private String channelName;// 渠道名称

	@MappingColumn(columnName = "PROVINCE_ID")
	private String provinceId;// 省id

	@MappingTable(tableName = "BASE_PROVINCE")
	private Province province;// 省信息

	@MappingColumn(columnName = "CITY_ID")
	private String cityId;// 市id

	@MappingTable(tableName = "BASE_CITY")
	private City city;// 市信息

	@MappingColumn(columnName = "CAR_ID")
	private String carId;// 车辆id

	@MappingTable(tableName = "ERP_CAR")
	private Car car;// 车辆信息

	private String userId; // 创建用户ID

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getOrderSaleType() {
		return orderSaleType;
	}

	public void setOrderSaleType(Integer orderSaleType) {
		this.orderSaleType = orderSaleType;
	}

	public Date getOrderDealDate() {
		return orderDealDate;
	}

	public void setOrderDealDate(Date orderDealDate) {
		this.orderDealDate = orderDealDate;
	}

	public BigDecimal getOrderPrice() {
		return orderPrice;
	}

	public void setOrderPrice(BigDecimal orderPrice) {
		this.orderPrice = orderPrice;
	}

	public BigDecimal getOrderDeposit() {
		return orderDeposit;
	}

	public void setOrderDeposit(BigDecimal orderDeposit) {
		this.orderDeposit = orderDeposit;
	}

	public String getOrderRemark() {
		return orderRemark;
	}

	public void setOrderRemark(String orderRemark) {
		this.orderRemark = orderRemark;
	}

	public String getOrderBuyerName() {
		return orderBuyerName;
	}

	public void setOrderBuyerName(String orderBuyerName) {
		this.orderBuyerName = orderBuyerName;
	}

	public String getOrderBuyerMobile() {
		return orderBuyerMobile;
	}

	public void setOrderBuyerMobile(String orderBuyerMobile) {
		this.orderBuyerMobile = orderBuyerMobile;
	}

	public String getOrderBuyerCardNo() {
		return orderBuyerCardNo;
	}

	public void setOrderBuyerCardNo(String orderBuyerCardNo) {
		this.orderBuyerCardNo = orderBuyerCardNo;
	}

	public Integer getOrderInsuranceState() {
		return orderInsuranceState;
	}

	public void setOrderInsuranceState(Integer orderInsuranceState) {
		this.orderInsuranceState = orderInsuranceState;
	}

	public String getOrderInsuranceCompany() {
		return orderInsuranceCompany;
	}

	public void setOrderInsuranceCompany(String orderInsuranceCompany) {
		this.orderInsuranceCompany = orderInsuranceCompany;
	}

	public BigDecimal getOrderForceInsurPrice() {
		return orderForceInsurPrice;
	}

	public void setOrderForceInsurPrice(BigDecimal orderForceInsurPrice) {
		this.orderForceInsurPrice = orderForceInsurPrice;
	}

	public BigDecimal getOrderBusinessInsurPrice() {
		return orderBusinessInsurPrice;
	}

	public void setOrderBusinessInsurPrice(BigDecimal orderBusinessInsurPrice) {
		this.orderBusinessInsurPrice = orderBusinessInsurPrice;
	}

	public Date getOrderCreateTime() {
		return orderCreateTime;
	}

	public void setOrderCreateTime(Date orderCreateTime) {
		this.orderCreateTime = orderCreateTime;
	}

	public Date getOrderUpdateTime() {
		return orderUpdateTime;
	}

	public void setOrderUpdateTime(Date orderUpdateTime) {
		this.orderUpdateTime = orderUpdateTime;
	}

	public String getOrderDealUserId() {
		return orderDealUserId;
	}

	public void setOrderDealUserId(String orderDealUserId) {
		this.orderDealUserId = orderDealUserId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getChannelId() {
		return channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
}
